package com.finance.framework.controller;

import lombok.Data;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.json.MappingJackson2JsonView;

import java.util.Map;

/**
 * Created by CBWL on 2017/3/16.
 */
@Data
public class Result {
    private ModelAndView modelAndView;

    private Result() {
        this.modelAndView = new ModelAndView(new MappingJackson2JsonView());
    }

    public Result(Map map) {
        this.modelAndView = new ModelAndView(new MappingJackson2JsonView(), map);
    }
}
